// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///E:/store/Travel%20-%20%E7%8E%AF%E7%90%83%E8%A1%8C%E5%AE%98%E7%BD%91/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/store/Travel%20-%20%E7%8E%AF%E7%90%83%E8%A1%8C%E5%AE%98%E7%BD%91/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///E:/store/Travel%20-%20%E7%8E%AF%E7%90%83%E8%A1%8C%E5%AE%98%E7%BD%91/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/store/Travel%20-%20%E7%8E%AF%E7%90%83%E8%A1%8C%E5%AE%98%E7%BD%91/node_modules/unplugin-vue-components/dist/vite.js";
import { NaiveUiResolver } from "file:///E:/store/Travel%20-%20%E7%8E%AF%E7%90%83%E8%A1%8C%E5%AE%98%E7%BD%91/node_modules/unplugin-vue-components/dist/resolvers.js";
var __vite_injected_original_import_meta_url = "file:///E:/store/Travel%20-%20%E7%8E%AF%E7%90%83%E8%A1%8C%E5%AE%98%E7%BD%91/vite.config.js";
var vite_config_default = defineConfig({
  base: "/",
  server: {
    host: "127.0.0.1",
    // 指定服务器应该监听哪个 IP 地址
    port: 5e3,
    // 指定开发服务器端口
    strictPort: true,
    // 若端口已被占用则会直接退出
    https: false,
    // 启用 TLS + HTTP/2
    open: true,
    // 启动时自动在浏览器中打开应用程序
    proxy: {
      // 配置自定义代理规则
      "/api": {
        // https://1.hqx.com.cn
        target: "https://www.hqx.com.cn",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, "")
      }
    }
  },
  plugins: [
    vue(),
    AutoImport({
      imports: [
        "vue",
        {
          "naive-ui": [
            "useDialog",
            "useMessage",
            "useNotification",
            "useLoadingBar"
          ]
        }
        // VueRouterAutoImports
      ]
    }),
    Components({
      resolvers: [NaiveUiResolver()]
    })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  }
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